home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / CamWnd.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  2.8 KB  |  100 lines

  1. #if !defined(AFX_CAMWND_H__44B4BA03_781B_11D1_B53C_00AA00A410FC__INCLUDED_)
  2. #define AFX_CAMWND_H__44B4BA03_781B_11D1_B53C_00AA00A410FC__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // CamWnd.h : header file
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CCamWnd window
  11. class CXYWnd;
  12.  
  13. class CCamWnd : public CWnd
  14. {
  15.   DECLARE_DYNCREATE(CCamWnd);
  16. // Construction
  17. public:
  18.     CCamWnd();
  19.  
  20. // Attributes
  21. public:
  22.  
  23. // Operations
  24. public:
  25.  
  26. // Overrides
  27.     // ClassWizard generated virtual function overrides
  28.     //{{AFX_VIRTUAL(CCamWnd)
  29.     protected:
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     void ShiftTexture_BrushPrimit(face_t *f, int x, int y);
  36.     void ReInitGL();
  37.     void BenchMark();
  38.     CXYWnd* m_pXYFriend;
  39.     void SetXYFriend(CXYWnd* pWnd);
  40.     virtual ~CCamWnd();
  41.   camera_t& Camera(){return m_Camera;};
  42.   void Cam_MouseControl(float dtime);
  43.   void Cam_ChangeFloor(qboolean up);
  44.  
  45. protected:
  46.   void Cam_Init();
  47.   void Cam_BuildMatrix();
  48.   void Cam_PositionDrag();
  49.   void Cam_MouseDown(int x, int y, int buttons);
  50.   void Cam_MouseUp (int x, int y, int buttons);
  51.   void Cam_MouseMoved (int x, int y, int buttons);
  52.   void InitCull();
  53.   qboolean CullBrush (brush_t *b);
  54.   void Cam_Draw();
  55.  
  56.  
  57.   brush_t* m_TransBrushes[MAX_MAP_BRUSHES];
  58.   int m_nNumTransBrushes;
  59.   camera_t m_Camera;
  60.   int    m_nCambuttonstate;
  61.   CPoint m_ptButton;
  62.   CPoint m_ptCursor;
  63.   CPoint m_ptLastCursor;
  64.   face_t* m_pSide_select;
  65.   vec3_t m_vCull1;
  66.   vec3_t m_vCull2;
  67.   int m_nCullv1[3];
  68.   int m_nCullv2[3];
  69.   bool m_bClipMode;
  70.  
  71.     // Generated message map functions
  72. protected:
  73.     void OriginalMouseDown(UINT nFlags, CPoint point);
  74.     void OriginalMouseUp(UINT nFlags, CPoint point);
  75.     //{{AFX_MSG(CCamWnd)
  76.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  77.     afx_msg void OnPaint();
  78.     afx_msg void OnDestroy();
  79.     afx_msg void OnClose();
  80.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  81.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  82.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  83.     afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
  84.     afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
  85.     afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  86.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  87.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  88.     afx_msg void OnSize(UINT nType, int cx, int cy);
  89.     afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
  90.     //}}AFX_MSG
  91.     DECLARE_MESSAGE_MAP()
  92. };
  93.  
  94. /////////////////////////////////////////////////////////////////////////////
  95.  
  96. //{{AFX_INSERT_LOCATION}}
  97. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  98.  
  99. #endif // !defined(AFX_CAMWND_H__44B4BA03_781B_11D1_B53C_00AA00A410FC__INCLUDED_)
  100.